﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace FlyHorse.LIMS.WinApp.Utils
{
    public static class CommonData
    {
        public static string GoodsType_Raw_ID = "1";
        public static string GoodsType_Production_ID = "2";

        public static string SamplingPlace_Do_ID = "5";
        #region 月报Do_Data标题的检验项目字典
        
       
        public static Dictionary<int, string> dictForMonthlyReportDo_Data = new Dictionary<int, string>() 
        {
        { 0, "DateTime" }, 
        { 1, "SampleName" }, 
        { 2, "Point" }, 
        { 3, "IA" },
        { 4, "DBP" }, 
        { 5, "IPH(AVG)" }, 
        { 6, "IPH(High)" }, 
        { 7, "IPH(Low)" }, 
        { 8, "Fines" }, 
        { 9, "HL" },
        { 10, "Sieve Residue(#35)" }, 
        { 11, "Sieve Residue(#100)" }, 
        { 12, "Sieve Residue(#325)" }, 
        { 13, "LT"},
        { 14, "PD" },
        { 15, "PH" },
        { 16, "PSD(#10)" },
        { 17, "PSD(#18)" },
        { 18, "PSD(#35)" },
        { 19, "PSD(#60)" }, 
        { 20, "PSD(#120)"}, 
        { 21,"PSD(PAN)"}, 
        { 22,"Tint"}, 
        { 23,"CDBP"}, 
        { 24,"N2SA"}, 
        { 25,"Ash"}, 
     
        };

        #endregion

        #region 月报DO 检验项目字典
        public static MonthReportDoTestItem GetTestItemIdByColumnIndex(int columnIndex)
        {
            if (columnIndex==4)
            {
                return new MonthReportDoTestItem() { ColumnIndex = columnIndex, TestItemID=TestItem_IA_ID, TestItemName="IA" };
            }
            else if (columnIndex==5)
            {
                return new MonthReportDoTestItem() { ColumnIndex = columnIndex, TestItemID = TestItem_DBP_ID, TestItemName = "DBP" };
            }
            else if (columnIndex == 6)
            {
                return new MonthReportDoTestItem() { ColumnIndex = columnIndex, TestItemID = TestItem_IPHavg_ID, TestItemName = "IPHavg" };
            }
            else if (columnIndex == 7)
            {
                return new MonthReportDoTestItem() { ColumnIndex = columnIndex, TestItemID = TestItem_IPHhigh_ID, TestItemName = "IPHhigh" };
            }
            else if (columnIndex == 8)
            {
                return new MonthReportDoTestItem() { ColumnIndex = columnIndex, TestItemID = TestItem_IPHlow_ID, TestItemName = "IPHlow" };
            }
            else if (columnIndex == 9)
            {
                return new MonthReportDoTestItem() { ColumnIndex = columnIndex, TestItemID = TestItem_Fines_ID, TestItemName = "Fines" };
            }
            else if (columnIndex == 10)
            {
                return new MonthReportDoTestItem() { ColumnIndex = columnIndex, TestItemID = TestItem_HL_ID, TestItemName = "Hl" };
            }
            else if (columnIndex == 11)
            {
                return new MonthReportDoTestItem() { ColumnIndex = columnIndex, TestItemID = TestItem_SieveResidue35_ID, TestItemName = "SieveResidue35" };
            }
            else if (columnIndex == 12)
            {
                return new MonthReportDoTestItem() { ColumnIndex = columnIndex, TestItemID = TestItem_SieveResidue100_ID, TestItemName = "SieveResidue100" };
            }
            else if (columnIndex == 13)
            {
                return new MonthReportDoTestItem() { ColumnIndex = columnIndex, TestItemID = TestItem_SieveResidue325_ID, TestItemName = "SieveResidue325" };
            }
            else
            {
                return null;
            }
           
        }
        #endregion



        //原材料检验项目    SP/Gr  比重   Moisture水分      BMCI  芳烃指数         Englar Viscosity  恩氏黏度      
        public static string TestItem_SP_ID = "48";
        public static string TestItem_Mositure_ID = "49";
        public static string TestItem_BMCI_ID = "54";
        public static string TestItem_EnglarViscosity_ID = "61";


        //过程检验项目
        public static string TestItem_IA_ID = "1";
        public static string TestItem_DBP_ID = "7";
        public static string TestItem_IPHavg_ID = "46";
        public static string TestItem_IPHhigh_ID = "8";
        public static string TestItem_IPHlow_ID = "30";
        public static string TestItem_Fines_ID = "9";
        public static string TestItem_HL_ID = "10";
        public static string TestItem_SieveResidue35_ID = "12";
        public static string TestItem_SieveResidue100_ID = "13";
        public static string TestItem_SieveResidue325_ID = "14";
        public static string TestItem_LT_ID = "15";
        public static string TestItem_PD_ID = "16";
        public static string TestItem_PH_ID = "17";
        public static string TestItem_PSD10_ID = "19";
        public static string TestItem_PSD18_ID = "20";
        public static string TestItem_PSD35_ID = "21";
        public static string TestItem_PSD60_ID = "22";
        public static string TestItem_PSD120_ID = "23";
        public static string TestItem_PSDPAN_ID = "24";
        public static string TestItem_Tint_ID = "25";
        public static string TestItem_CDBP_ID = "26";
        public static string TestItem_N2SA_ID = "28";
        public static string TestItem_Ash_ID = "27";
    }
    public class MonthReportDoTestItem
    {
        public string TestItemID { get; set; }
        public string TestItemName { get; set; }
        public int ColumnIndex { get; set; }
    }
}
